Skip to main content

slotToPOSIX

slotToPOSIX( slot: number | bigint ): number
  • slot: number | bigint

given a slot number returns the equivalent POSIX time based on the GenesisInfos

if no genesis infos are set the method throws an Error;

you can set the genesis infos using the setGenesisInfos method.